#ifndef _CINDICATOR_WMA_H
#define _CINDICATOR_WMA_H

namespace GSTrader
{
	namespace Indicator
	{
		class INDICATOR_API WMA : public CIndicator
		{
		public:
			WMA();
			virtual ~WMA();
			virtual CIndicator* CreateInstance();

			void SetParam(int nLength, int nBartype);

			virtual void SetParam(double* pdParam);
			virtual double Calculate(int nIndex);
			virtual void RefreshData();
		private:
			int m_nLength;
			int m_nBarType;
		};
	}
}

#endif // _CINDICATOR_WMA_H

